package com.cxf.cxfcommons.redis;

import redis.clients.jedis.Jedis;

import java.util.Set;

/**
 * description: JedisUtils <br>
 * date: 2021/12/2 19:47 <br>
 * author: cxf <br>
 * version: 1.0 <br>
 */
public class JedisUtils {


    public static void main(String[] args) {

        Jedis jedis = new Jedis("106.13.224.166",6379);
        jedis.auth("cxfredis");

        Set<String> keys = jedis.keys("*");

        for (String key:
             keys) {
            System.out.println(">>>>>>>>>>>>>>>>>>> key is :"+key);
        }

    }

}
